Optimal. Leaf size=11 \[ (a+b) \tanh ^{-1}(x)-b x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0066391, antiderivative size = 11, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {388, 206} \[ (a+b) \tanh ^{-1}(x)-b x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 388
Rule 206
Rubi steps
\begin{align*} \int \frac{a+b x^2}{1-x^2} \, dx &=-b x-(-a-b) \int \frac{1}{1-x^2} \, dx\\ &=-b x+(a+b) \tanh ^{-1}(x)\\ \end{align*}
Mathematica [B] time = 0.0085583, size = 28, normalized size = 2.55 \[ \frac{1}{2} (-(a+b) \log (1-x)+(a+b) \log (x+1)-2 b x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.003, size = 34, normalized size = 3.1 \begin{align*} -bx-{\frac{\ln \left ( -1+x \right ) a}{2}}-{\frac{\ln \left ( -1+x \right ) b}{2}}+{\frac{\ln \left ( 1+x \right ) a}{2}}+{\frac{\ln \left ( 1+x \right ) b}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.996524, size = 31, normalized size = 2.82 \begin{align*} -b x + \frac{1}{2} \,{\left (a + b\right )} \log \left (x + 1\right ) - \frac{1}{2} \,{\left (a + b\right )} \log \left (x - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.27101, size = 76, normalized size = 6.91 \begin{align*} -b x + \frac{1}{2} \,{\left (a + b\right )} \log \left (x + 1\right ) - \frac{1}{2} \,{\left (a + b\right )} \log \left (x - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.300267, size = 22, normalized size = 2. \begin{align*} - b x - \frac{\left (a + b\right ) \log{\left (x - 1 \right )}}{2} + \frac{\left (a + b\right ) \log{\left (x + 1 \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.14409, size = 34, normalized size = 3.09 \begin{align*} -b x + \frac{1}{2} \,{\left (a + b\right )} \log \left ({\left | x + 1 \right |}\right ) - \frac{1}{2} \,{\left (a + b\right )} \log \left ({\left | x - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]